package com.party.core.dao.read.commune;

import com.party.common.annotation.DataAuthParam;
import com.party.common.paging.Page;
import com.party.core.dao.read.BaseReadDao;
import com.party.core.model.commune.CRoute;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 路线读取接口
 * @Date: 2019/10/22 14:25
 */
public interface CRouteReadDao extends BaseReadDao<CRoute> {

    @DataAuthParam(moduleType="MEMBERMGMT" ,field="create_by",alias="cr")
    List<CRoute> webPageList(@Param("params") Map<String, Object> params, Page page);

    List<CRoute> getAllRoute(@Param("partnerId") String partnerId, @Param("orgIds") List<String> orgIds);

    CRoute getRouteByName(@Param("routeName") String routeName,@Param("partnerId") String partnerId);
}
